    <section>

      <ul class="breadcrumb">
        <li><a href="<?php echo base_url('index.php/mainController/'); ?>">Home</a> <span class="divider">/</span></li>
        <li><a href="<?php echo base_url('index.php/referenceController/'); ?>">รายชื่อ Reference</a> <span class="divider">/</span></li>
        <li class="active">แก้ไข Reference</li>
      </ul>

      <div class="page-header">
        <h1>แก้ไข Reference</h1>

      </div>

      

      <?php echo form_open('referenceController/update/'.$dataLoad['ref_id'],array('class'=>'form-horizontal')); ?>

       <?php
       $err = validation_errors();

       if($err){
        echo '<div class="alert alert-block" > 
          <a class="close" onclick="$(".alert").hide()">×</a>  
          <strong>แจ้งเตือน!</strong> '.$err.'</div>';
       }
       ?>

        <!-- <div class="control-group">
          <label class="control-label" for="group">กลุ่ม</label>
          <div class="controls">
            <select name='group'>
              <?php 
              foreach ($allGroup as $value) {
                echo '<option id="'.$value['ref_group'].'" >';
                echo $value['ref_group'];
                echo '</option>';
              } 
              ?>
            </select>
            <span class="help-inline"></span>
          </div>
        </div> -->


        <div class="control-group">
          <label class="control-label" for="name">ชื่อ</label>
          <div class="controls">
            <input type="text" name="name" placeholder="ชื่อ" value="<?php echo iconv('TIS-620', 'UTF-8', $dataLoad['ref_name']); ?>">
          </div>
        </div>

        <div class="control-group">
          <label class="control-label" for="status">สถานะ</label>
          <div class="controls">
            <select name='status'>
              <option value="A" <?php if($dataLoad['ref_status'] =='A') echo 'selected="selected"' ?>>ทำงาน</option>
              <option value="N" <?php if($dataLoad['ref_status'] =='N') echo 'selected="selected"' ?>>ไม่ทำงาน</option>
            </select>
            <span class="help-inline"></span>
          </div>
        </div>

        <div class="control-group">
            <div class="controls">
              <button id="btnEdit" name="btnEdit" type="submit" class="btn btn-primary">แก้ไข</button>
            </div>
          </div>
        
      <?php echo form_close(); ?>

    </section>